values =[]
url = 'http://hxzhan.rtcloud.com:32111/tm/data/history'
headers = {
    'content-type':'application/json; charset=utf-8',
    'Tm-Token':get_token(), 
    'rt-request-ts':get_time(),
    'rt-request-id':get_id()
}
json = {'device_id': 57714,'limit':5,'page':1,'start':int(get_time())*1000-604800000,'end':int(get_time())*1000}#减去一周时间
response = requests.post(url=url,headers=headers,json=json)

humid = []
temp = []
CollectTime = []
data_list = response.json()['data']['list']